package com.jake.sap.config;

import com.jake.common.constant.SizeConstants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.time.LocalDateTime;
import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;

@Configuration
public class ConcurrentConfig {

    @Bean
    public Queue<LocalDateTime> sapConcurrentQueue() {
        return new LinkedBlockingQueue<>(SizeConstants.SAP_MAX_CONNECTION_SIZE);
    }

}
